package com.CST.entity.ys;

import com.CST.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author cw
 */
@Getter
@Setter
@TableName("YS_ASSET_MODIFY_RECORDS")
@ApiModel(value = "YsAssetModifyRecords对象", description = "资产类修订记录实体类")
public class YsAssetModifyRecords{

    private static final long serialVersionUID = 1L;

    @TableId(type= IdType.AUTO)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("用友编码")
    @TableField("NUM")
    private Integer num;

    @ApiModelProperty("资产编码")
    @TableField("ASSET_NUM")
    private String assetNum;

    @ApiModelProperty("资产名称")
    @TableField("ASSET_NAME")
    private String assetName;

    @ApiModelProperty("部门编码")
    @TableField("DEPT_CODE")
    private String deptCode;

    @ApiModelProperty("预算科目编码")
    @TableField("SUBJECT_CODE")
    private Integer subjectCode;

    @ApiModelProperty("预算科目名称")
    @TableField("SUBJECT_NAME")
    private String subjectName;

    @ApiModelProperty("原值")
    @TableField("ORIGINAL_VALUE")
    private BigDecimal originalValue;

    @ApiModelProperty("开始使用日期")
    @TableField("USE_START_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime useStartDate;

    @ApiModelProperty("存放地点")
    @TableField("SITE")
    private String site;

    @ApiModelProperty("使用人")
    @TableField("OPERATOR")
    private String operator;

    @ApiModelProperty("院区")
    @TableField("YARD")
    private Integer yard;

    @ApiModelProperty("操作内容")
    @TableField("OPER_CONTENT")
    private String operContent;

    @ApiModelProperty("操作时间")
    @TableField("OPER_TIME")
    private LocalDateTime operTime;

    @ApiModelProperty("操作人")
    @TableField("OPER_BY")
    private String operBy;

    @ApiModelProperty("数据月份")
    @TableField("PERIOD")
    private Integer period;

    @ApiModelProperty("撤销flag")
    @TableField("REVOKE_FLAG")
    private Integer revokeFlag;

    @TableField("DELETE_FLAG")
    private Integer deleteFlag;

    @ApiModelProperty("部门名称")
    @TableField(exist = false)
    private String deptName;
}
